<template>
  <div class="wrap">
    <img src="../assets/wxpay2.png" class="wxg" alt="">
    <img src class="qrcode" alt />
    <p v-if="recharge_type==2">捷报订单一年会员：798.00元</p>
    <p v-if="recharge_type==1">捷报订单半年会员：498.00元</p>
    
  </div>
</template> 
<style scoped lang="scss">
.wxg{
  width: 5rem;
  margin: .6rem auto;
  display: block;
}
.qrcode {
  width: 9rem;
  height: 9rem;
  background: #f00;
  margin: 0.4rem auto;
  display: block;
}
p{
  color: #f00;
  text-align: center;
  margin-top: 15px;
}


</style>
<script>
import {  unifiedorder,findPayOrder} from "@/utils/interface";
import { Dialog } from "vant";

export default {
  data() {
    return {
      recharge_type: "",
      recharge_way: "2",
      order_code: "",
      amount: ""
    };
  },
  created() {
    this.recharge_type = this.$route.query.idx;
  },
  methods: {
    save() {
     
      Dialog.confirm({
        title: "提示",
        message: "确认已转账成功，并填写支付宝订单号和充值金额"
      }).then(res => {
        
      });
    },
    pay(){
      unifiedorder().then(res=>{
        console.log(res)
      })
    }
  }
};
</script>